<!--{include header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul>${current_account('gio-hang')}</ul>
	</div>
    <div id="content" class="coupons-box clear">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>Giỏ hàng</h2>
                    <ul class="filter">
						<li class="label">${current_order_index($selector)}</li>						
					</ul>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
						<tr class="forum_title_tr"><th>Mã ĐH #</th><th width="380">Sản phẩm</th><th width="60">Số lượng</th><th width="60">Thành tiền</th><th width="60">Tình trạng</th><th width="60">Thao tác</th><th width="60">Hủy</th></tr>
					<!--{loop $orders $index $one}-->
						<tr ${$index%2?'':'class="alt"'}>
							<td>{$one['code']}</td>
							<td style="text-align:left;"><a class="deal-title" href="/team.php?id={$one['team_id']}" target="_blank">${sub_str($teams[$one['team_id']]['title'],50)}</a></td>
							<td>{$one['quantity']}</td>
							<td>${formatMoney($one['origin'],0)}</td>
							<td width="179px"><!--{if $one['state']=='pay'}--><b style="color: green">Đã thanh toán</b><!--{elseif $teams[$one['team_id']]['close_time']>0}--><b style="color: #666;">Hết hạn</b><!--{else}--><b style="color: red;">Chưa thanh toán</b><!--{/if}--><!--{/if}--></td>
							<td class="op"><!--{if ($one['state']=='unpay'&&$teams[$one['team_id']]['close_time']==0)}--><a href="/order/check.php?id={$one['id']}">thanh toán</a><!--{elseif $one['state']=='pay'}--><a href="/order/success.php?order_id={$one['id']}">chi tiết</a><!--{/if}--></td>					
							<td class="op">
							<!--{if ($one['state']=='unpay'&&$teams[$one['team_id']]['close_time']==0)}-->
							<a href="/order/remove.php?orderID={$one['id']}" class="ajaxlink" ask="Bạn muốn hủy đơn hàng này?">Hủy</a>
							<!--{else}-->
							<b style='text-decoration: line-through;'>Hủy</b>
							<!--{/if}-->
							</td>
						</tr>
					<!--{/loop}-->
						<tr><td colspan="6">{$pagestring}</td></tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
    <div id="sidebar">
		<!--{//include block_side_aboutorder}-->
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->
<!--{include footer}-->